<?php
$listcatmodunle=ListRootCatModunle($module);
if($id>0)
{
    $contents=ListContentGallery($id);
    if(count($contents)==0)
    {
    	$categories=ListCatByParentId($id);
    }
}else
{
    page_transfer("Please create Category Gallery","opt=add");
}

?>